﻿using System;
using System.Windows;

namespace Helper
{
    public class Notification: DependencyObject
    {
        public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(Notification),
            new PropertyMetadata(""));
        public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(Notification),
            new PropertyMetadata(""));
        public static readonly DependencyProperty ExpiryProperty = DependencyProperty.Register("Expiry", typeof(DateTime), typeof(Notification),
            new PropertyMetadata(DateTime.Now));
        public Notification()
        {
        }
        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }
        public string Message
        {
            get { return (string)GetValue(MessageProperty); }
            set { SetValue(MessageProperty, value); }
        }

        public DateTime Expiry
        {
            get { return (DateTime)GetValue(ExpiryProperty); }
            set { SetValue(ExpiryProperty, value); }
        }
    }
}
